﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1"/>	<title></title>
		<link rel="stylesheet" type="text/css" href="css/jquery-weui.css" />
		<link rel="stylesheet" type="text/css" href="lib/weui.css" />
		<link rel="stylesheet" type="text/css" href="css/demos.css" />
		<style type="text/css">
			.top .weui-flex {
				background-color: #C40F6C;
			}
			
			.weui-flex__item .placeholder {
				padding-right: 10px;
			}
			
			.top .weui-flex__item .placeholder img {
				width: 30px;
				margin-left: 8px;
				position: absolute;
			}
			
			.top .placeholder img {
				width: 80px;
			}
			
			.placeholder div {
				position: relative;
				margin-top: 5px;
				width: 100%;
				height: 30px;
				border-radius: 10px;
				box-sizing: border-box;
				background-color: white;
			}
			
			.placeholder input {
				font-size: 14px;
				box-sizing: border-box;
				background: url(img/img/lp_sch_txt.png) 40px top no-repeat;
				background-size: contain;
				margin-top: 4px;
				padding-left: 40px;
				outline: none;
				border: 0px;
				border-radius: 10px;
				width: 100%;
				height: 20px;
				line-height: 20px;
			}
			
			.swiper-container img {
				width: 100%;
			}
			
			.main {
				max-width: 600px;
				min-width: 320px;
				margin: 0px auto;
			}
			/*#big,.weui-tabbar {
				
				max-width: 640px;
				min-width: 320px;
				margin: 0px auto;
			}*/
			
			#four .weui-flex__item {
				background-color: white;
				text-align: center;
				font-size: 14px;
				font-family: "微软雅黑";
				line-height: 20px;
			}
			
			#four .weui-flex__item img {
				max-width: 50px;
			}
			
			.mainca a {
				display: block;
			}
			
			.mainb {
				position: relative;
			}
			
			.mainb img {
				width: 100%;
			}
			
			.mainb .weui-flex:first-of-type {
				width: 100%;
				position: absolute;
				top: 0px;
				height: 50%;
			}
			
			.mainb .weui-flex:last-of-type {
				width: 100%;
				position: absolute;
				bottom: 0;
				height: 50%;
			}
			
			.mainc {
				background-color: #EEEEEE;
			}
			
			.mainca {
				background-color: white;
				box-sizing: border-box;
				width: 50%;
				float: left;
				border-bottom: 4px solid #EEEEEE;
			}
			
			.mainca:nth-of-type(2n) {
				border-left: 2px solid #EEEEEE;
			}
			
			.mainca:nth-of-type(2n-1) {
				border-right: 2px solid #EEEEEE;
			}
			
			.mainca>a>img {
				display: block;
				width: 100%;
			}
			
			.mainca p {
				font-size: 14px;
				height: 50px;
				line-height: 25px;
				overflow: hidden;
				color: black;
			}
			
			.mainca span {
				font-weight: bold;
				float: left;
				color: #E50012;
			}
			
			.mainca div {
				border-top: 1px dotted black;
			}
			
			.mainca div img {
				float: right;
			}
			
			.weui-loadmore {
				margin-bottom: 60px;
			}
		</style>
	</head>

	<body>
		<div class="weui-tab">
			<div class="weui-tab__bd">
				<div id="tab2" class="weui-tab__bd-item weui-tab__bd-item--active">
					<div class="top">
						<div class="weui-flex">
							<div>
								<div class="placeholder">
									<img src="img/img/logo.png" />
								</div>
							</div>
							<div class="weui-flex__item">
								<div class="placeholder">
									<div>
										<img src="img/img/search.png" />
										<input type="text" name="" id="" value="" />
									</div>
								</div>
							</div>
						</div>
					</div>

					<div class="main">
						<!--轮播-->
						<div class="swiper-container">
							<!-- Additional required wrapper -->
							<div class="swiper-wrapper">
								<!-- Slides -->
								<div class="swiper-slide"><img src="img/img/CghmQldg786AIeNuAAH2MVVCZR4970.jpg" /></div>
								<div class="swiper-slide"><img src="img/img/CghmQ1drPH-AGAt3AAEXJv101bQ532.jpg" /></div>
							</div>
							<!-- If we need pagination -->
							<div class="swiper-pagination"></div>
						</div>
						<!--轮播下四个-->
						<div id="four">
							<div class="weui-flex">
								<div class="weui-flex__item">
									<div class="placeholder">
										<img src="img/img/icon_integral.png" />
										<p>我的优惠卷</p>
									</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder">
										<img src="img/img/icon_coupon.png" />
										<p>持惠精品</p>
									</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder">
										<img src="img/img/icon_logistics.png" />
										<p>物流查询</p>
									</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder">
										<img src="img/img/icon_concern.png" />
										<p>我的关注</p>
									</div>
								</div>
							</div>
						</div>
						<!---->
						<div class="mainb">
							<img src="img/img/CghmQldsyJOAEAH3AADbM64GtAo873.jpg" />
							<div class="weui-flex">
								<div class="weui-flex__item">
									<a href="">
										<div class="placeholder"></div>
									</a>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder"></div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="weui-flex__item">
									<div class="placeholder"></div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder"></div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder"></div>
								</div>
							</div>
						</div>
						<!---->
						<div class="mainc">
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1dCyJuAF7H4AABQxJCShKM737.jpg" />
									<p>【5秒秒杀】奶香夏威夷果120g每个ID限购三份(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥ 9</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1cHC7SACJMpAABGOhGP8IY234.jpg" />
									<p>【5秒秒杀】澳大利亚纯牛奶巧克力老少皆宜每个ID限购三份(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥ 13.9</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1cHGh2Aa6mlAABS6VF_h-o712.jpg" />
									<p>【5秒秒杀】香辣可口小鱼60g每个ID限购三份(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥4.5</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1dCx5OAFhgJAAB3TO0ffJo992.jpg" />
									<p>【5秒秒杀】传说级鱼香肉丝每个ID限购三fen(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥ 17.9</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1dCxdGAMl9SAAA6B7zIYps322.jpg" />
									<p>【5秒秒杀】新疆毛果干每个ID限购一份(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥ 7.5</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1cHD_yAW6vYAAAyzQO5sZg501.jpg" />
									<p>【5秒秒杀】皇家臭豆腐30g每个ID限购三分(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥ 12.4</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1dCx2iAEhNEAABMAErBcNA700.jpg" />
									<p>【5秒秒杀】美味紫葡萄干每个ID限购三分(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥19.0</span><img src="img/img/buy.png" />
								</div>
							</div>
							<div class="mainca">
								<a href=""><img src="img/img/CghmQ1dCyPKAf8yvAABivpc4XyE505.jpg" />
									<p>【5秒秒杀】澳洲进口草牛肉肠每个ID限购三份(全场满68元包邮)</p>
								</a>
								<div>
									<span>￥ 8.9</span><img src="img/img/buy.png" />
								</div>
							</div>
						</div>
						<!--慢加载-->
						<div class="weui-loadmore">
							<i class="weui-loading"></i>
							<span class="weui-loadmore__tips">正在加载</span>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--尾部-->
		<div class="weui-tabbar">
			<a href="index.html" class="weui-tabbar__item  weui-bar__item--on">
				<div class="weui-tabbar__icon">
					<img src="./images/icon_nav_button.png" alt="">
				</div>
				<p class="weui-tabbar__label">首页</p>
			</a>
			<a href="home2.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<img src="./images/icon_nav_msg.png" alt="">
				</div>
				<p class="weui-tabbar__label">分类</p>
			</a>
			<a href="home3.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<img src="./images/icon_nav_article.png" alt="">
				</div>
				<p class="weui-tabbar__label">购物车</p>
			</a>
			<a href="home4.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<img src="./images/icon_nav_cell.png" alt="">
				</div>
				<p class="weui-tabbar__label">我的良品</p>
			</a>
		</div>
		<script src="lib/fastclick.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/swiper.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			//轮播
			$(".swiper-container").swiper({
				loop: true,
				autoplay: 3000
			});
			//滚动加载
			$(function() {
				FastClick.attach(document.body);
			});
			var loading = false;
			$(".weui-tab").infinite().on("infinite", function() {
				if(loading) return;
				loading = true;
				setTimeout(function() {
					$(".mainc").append("<p>加入加入</p>");
					//					$(".mainc").append("<div class='mainca'><a ><img src='img/img/CghmQ1dCyJuAF7H4AABQxJCShKM737.jpg' /><p>【5秒秒杀】奶香夏威夷果120g每个ID限购三分(全场满68元包邮)</p></a><div><span>￥ 9</span><img src='img/img/buy.png' /></div></div>");
					loading = false;
					alert("成功");
				}, 2000);
			});
		</script>
	</body>

</html>